package createThread;

import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;

/**
 * @program: jvm
 * @description
 * @author: tkk fendoukaoziji
 * @create: 2019-02-25 16:58
 **/
public class ImplementsCallable implements Callable<Object> {
    @Override
    public Object call() throws Exception {
        return "just For fun";
    }

    public static void main(String[] args) {
        Callable oneCallable=new ImplementsCallable();
        FutureTask<Object> oneTask = new FutureTask<Object>(oneCallable);
        Thread myT = new Thread(oneTask);
        myT.start();
    }
}
